import Request from '@/utils/request-util';

/**
 * 主机表api
 *
 * @author sakanayy
 * @date 2023/06/29 15:15
 */
export class DevopsDoHostMachineApi {
  /**
   * 获取分页列表
   *
   * @author sakanayy
   * @date 2023/06/29 15:15
   */
  static findPage(params) {
    return Request.getAndLoadData('/devopsDoHostMachine/page', params);
  }

  /**
   * 新增
   *
   * @author sakanayy
   * @date 2023/06/29 15:15
   */
  static add(params) {
    return Request.post('/devopsDoHostMachine/add', params);
  }

  /**
   * 修改
   *
   * @author sakanayy
   * @date 2023/06/29 15:15
   */
  static edit(params) {
    return Request.post('/devopsDoHostMachine/edit', params);
  }

  /**
   * 删除
   *
   * @author sakanayy
   * @date 2023/06/29 15:15
   */
  static delete(params) {
    return Request.post('/devopsDoHostMachine/delete', params);
  }

  /**
   * 详情
   *
   * @author sakanayy
   * @date 2023/06/29 15:15
   */
  static detail(params) {
    return Request.getAndLoadData('/devopsDoHostMachine/detail', params);
  }
}
